<?php

require_once(ISLANDS_PATH . '/Island/Abstract.php');
require_once(ISLANDS_PATH . '/Island/Interface.php');

class HelloWorldV1 extends CodeIslands_Island_Abstract implements CodeIslands_Island_Interface
{
	public function getContent($parameters)
	{
		$service = $this->_api_service_factory->getService('Request');
		$message = $service->getQuerystringParam('msg');
		
		$parameters = array_merge(
			array('message' => $message),
			$parameters
			);
		
        $template_engine_service = $this->_api_service_factory->getService('TemplateEngine');

		return $template_engine_service->fetch($parameters);
	}
}